package com.it.boot.config.feign;

import com.it.boot.config.ApiResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

@FeignClient(name = "RemoteApiServiceClient", url = "https://localhost:9091", configuration = {FeignTextPlainConf.class}, fallbackFactory = RemoteApiServiceFallbackFactory.class)
public interface RemoteApiService {

    @GetMapping(value = "/api/HelloController/hello")
    String hello();

    @GetMapping(value = "/api/HelloController/testContentType")
    ApiResult<Integer> testContentType(@RequestParam("name") String name);
}
